#ifndef WARNRECODETABMODEL_H
#define WARNRECODETABMODEL_H

#include <QList>
#include <QAbstractTableModel>
#include "wareRecodeModel.h"
class warnRecodeTabModel : public QAbstractTableModel
{
    Q_OBJECT
public:
    explicit warnRecodeTabModel(QObject *parent = nullptr);

    int rowCount(const QModelIndex &parent = QModelIndex()) const override;
    int columnCount(const QModelIndex &parent = QModelIndex()) const override;
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
    QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
    void updateAllDeviceList(const QList<wareRecodeModel> &newList);
private:
    QList<wareRecodeModel>dataList;
};

#endif // WARNRECODETABMODEL_H
